plat.WinUtil= function (){
	return{
		top:function(){
				var w = window;
				return w.top;
			},
			
		openDialog:function(){
			var dd=$("<div id='dd'></div>");
			dd.dialog({
				    title: 'My Dialog',
				    width: 400,
				    height: 200,
				    closed: false,
				    cache: false,
				    modal: true
				});
		},
		
		refresh:function(){
			window.top;
		},
		
		close:function(){
			if(window.frameElement&&window.frameElement.id){
				window.top.index_closetab(window.frameElement.id);
			}
		}
	};
}();